package com.yenlien.traceyun.plant.dock_device.xinfengxiang;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

/**
 * @author jialong
 * @date 2021/03/31
 * @description: 实体类
 **/

@Data
@Entity(name = "t_xin_feng_xiang")
public class XinFengXiang extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -8174285605052568665L;

    /**
     * 自己平台的设备ID
     */
    @Column
    private String equipmentId;

    /**
     * 对方平台的设备ID
     */
    @Column
    private String deviceId;

    /**
     * 地块ID  (一个公司可以对应多个地块)
     */
    @Column
    private String baseSoilId;

    /**
     * 自己平台的设备名
     */
    @Column
    private String equipmentName;

    /**
     * 公司ID
     */
    @Column
    private String companyId;

    /**
     * 采集时间
     */
    @Column
    private Date dateTime;

    /**
     * 单位
     */
    @Column
    private String eUnit;

    /**
     * 值
     */
    @Column
    private String eValue;

    /**
     * 通道
     */
    @Column
    private String eKey;

    /**
     * 类型, 如 风速，大气温度
     */
    @Column
    private String eName;

    /**
     * 传感器编号 (一个设备可对应多个传感器)
     */
    @Column
    private String eNum;

    /**
     * 创建时间
     */
    @Column
    private Date createTime;

    public XinFengXiang(String equipmentId, String deviceId, String baseSoilId, String equipmentName, String companyId, Date dateTime, String eUnit, String eValue, String eKey, String eName, String eNum, Date createTime) {
        super();
        this.equipmentId = equipmentId;
        this.deviceId = deviceId;
        this.baseSoilId = baseSoilId;
        this.equipmentName = equipmentName;
        this.companyId = companyId;
        this.dateTime = dateTime;
        this.eUnit = eUnit;
        this.eValue = eValue;
        this.eKey = eKey;
        this.eName = eName;
        this.eNum = eNum;
        this.createTime = createTime;
    }

    public XinFengXiang() {
    }

}
